﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="admin_activitytype.aspx.cs" Inherits="Lawyer.Web.Admin.admin_activitytype" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SideBar" runat="server">
<nav>
    <a class="chevron" href="#">&raquo;</a>
    <ul>
                                <li><a href="admin_activityadd.aspx">New Activity</a></li>
                                <li><a href="admin_activity.aspx">All List</a></li>
                                <li><a href="admin_activity.aspx?status=2"> To do list</a></li>
                                <li><a href="admin_activity.aspx?status=3">Job done List</a></li>
                                <li class="current"><a href="admin_activitytype.aspx">Activity Type</a></li>                                
    </ul>
</nav>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
<div class="main-content">
                        <header>
                                <ul class="action-buttons clearfix">
                                <li><a href="admin_activitytypeadd.aspx" class="large button zoombox"  >New ActivityType</a></li>

<%--                                <li><a href="documentation/index.html" class="button help" rel="#overlay" data-icon-primary="ui-icon-help" data-icon-only="true">Help</a></li>
--%>                            </ul>
                        
                            <h2>Activity Type</h2>
                        </header>
                        
                        <section class="container_6 clearfix">
                            <div class="grid_6"> 
                            <asp:GridView CssClass="display" ID="ActivityTypeList" runat="server" 
                                    AutoGenerateColumns="False" DataKeyNames="TypeID" 
                                    onrowcommand="ActivityTypeList_RowCommand" 
                                    onrowdatabound="ActivityTypeList_RowDataBound" >
                                <Columns>
                                    <asp:BoundField DataField="TypeID" HeaderText="Type ID" Visible = "false"/>
                                    <asp:BoundField DataField="TypeName" HeaderText="Type Name"/>
                                    
                                    <asp:TemplateField HeaderText="Edit">
                                      <ItemTemplate>
                                       <a class="zoombox" href='admin_activitytypeupdate.aspx?type=<%#Eval("TypeID") %>'>Edit</a>
                                      </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Delete">
                                      <ItemTemplate>
                                       <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%#Eval("TypeID") %>' Text = "Delete"></asp:LinkButton>
                                      </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Count">
                                      <ItemTemplate>
                                       <asp:LinkButton ID="btnCount" runat="server"  CommandArgument='<%#Eval("TypeID") %>' Text = ""></asp:LinkButton>
                                      </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                </asp:GridView>
                                
                            </div> 
			
                            
                       
                        </section>
                    </div>
</asp:Content>
